<template>

  <button v-if="display">{{ btnName }}</button>

</template>

<script>
export default {
  data() {
    return {
      display: true
    }
  },
  props: ['btnName', 'authCode', 'currentUserAuthList'],
  created() {
    let authList = this.currentUserAuthList;
    this.display = authList.indexOf(this.authCode) > -1
  }
}
</script>

<style scoped>

</style>
